/* 院校与企业页面样式 */
:root {
    --primary-color: #3f51b5;
    --secondary-color: #ff4081;
    --accent-color: #00bcd4;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --text-color: #333;
    --text-color-secondary: #666;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --border-color: #eee;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --active-tab-color: #3f51b5;
    --card-radius: 12px;
    --card-bg: #fff;
    --body-bg: #f9f9f9;
    --content-max-width: 450px; /* 添加内容最大宽度变量 */
    --animation-time: 0.3s;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--body-bg);
    color: var(--text-color);
    transition: background-color var(--animation-time) ease;
}

/* 页面过渡动画 */
.page-transition {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页面头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--animation-time) ease;
}

/* 滚动效果头部 */
.header-scrolled {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    max-width: var(--content-max-width);
    margin: 0 auto;
    transition: padding var(--animation-time) ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 28px;
    margin-right: 8px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-size: 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 3px rgba(0,0,0,0.1);
}

/* 用户位置样式 */
.location-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
}

.location-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 3px;
}

.location-text {
    font-size: 14px;
    color: var(--text-color);
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.location-info:hover .location-text {
    color: var(--primary-color);
}

.location-info::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
    opacity: 0.7;
}

.location-info:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 位置加载动画 */
.location-info.locating .location-icon {
    animation: location-pulse 1.5s infinite;
}

.location-info.locating .location-text {
    background: linear-gradient(90deg, var(--light-gray), #fff, var(--light-gray));
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    color: transparent;
}

@keyframes location-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.search-bar {
    flex: 1;
    margin: 0 15px;
    position: relative;
}

.search-input {
    width: 100%;
    height: 36px;
    border-radius: 18px;
    background-color: var(--light-gray);
    border: 1px solid transparent;
    padding: 0 40px 0 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) inset;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.1), 0 2px 8px rgba(0,0,0,0.05);
    transform: translateY(-1px);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.search-btn:active {
    transform: translateY(-50%) scale(0.9);
}

.search-btn i {
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.avatar:hover img {
    transform: scale(1.1);
}

/* 主要内容区域 */
.main-content {
    padding: 15px;
    margin-top: 60px; /* header高度 */
    margin-bottom: 60px; /* tab-bar 高度 */
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    transition: padding 0.3s ease;
}

/* 分类标签切换 */
.category-tabs {
    display: flex;
    justify-content: center; /* 居中 */
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    padding: 5px;
    box-shadow: var(--shadow-color) 0px 1px 4px;
    transition: all 0.3s ease;
}

.category-tabs:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.category-tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px; /* 内部圆角 */
    overflow: hidden;
}

.category-tabs .tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.category-tabs .tab:hover::before {
    width: 50%;
    opacity: 1;
}

.category-tabs .tab.active {
    color: var(--primary-color);
    background-color: rgba(63, 81, 181, 0.1); /* 激活时背景色 */
    font-weight: 600;
}

.category-tabs .tab.active::before {
    width: 70%;
    opacity: 1;
}

.category-tabs .tab.tab-hover {
    background-color: rgba(63, 81, 181, 0.05);
}

/* 筛选器 */
.filter-bar {
    display: none; /* 默认隐藏 */
    flex-wrap: wrap;
    gap: 10px 15px; /* 行间距 列间距 */
    padding: 15px;
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow-color) 0px 1px 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-bar.active {
    display: flex; /* 激活时显示 */
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.filter-item.filter-focus {
    transform: translateY(-2px);
}

.filter-item label {
    font-size: 14px;
    color: var(--text-color-secondary);
    white-space: nowrap;
}

.filter-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--light-gray);
    font-size: 14px;
    color: var(--text-color);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' class='bi bi-chevron-down' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    cursor: pointer;
    min-width: 120px;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.05);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.1);
    background-color: var(--card-bg);
    transform: translateY(-1px);
}

/* 视图选项 */
.view-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px; /* 微调左右内边距 */
}

.view-toggle {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) inset;
    transition: all 0.3s ease;
}

.view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-secondary);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.view-btn i {
    font-size: 18px;
    transition: all 0.2s ease;
}

.view-btn.active {
    background-color: var(--card-bg);
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.view-btn:hover i {
    transform: scale(1.2);
}

.sort-options {
    display: flex;
    gap: 10px;
}

.sort-option {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-color-secondary);
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sort-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(63, 81, 181, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.sort-option:hover::after {
    opacity: 1;
    transform: scale(3);
}

.sort-option.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(63, 81, 181, 0.1);
}

/* 院校和企业列表 */
.institutions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.institution-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.institution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.institution-logo-container {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    overflow: hidden;
    background-color: #f0f2f5;
    transition: all 0.3s ease;
}

.institution-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.institution-logo.image-loading {
    animation: pulse 1.5s infinite ease-in-out;
    background-color: #f0f2f5;
}

.institution-logo.image-loaded {
    opacity: 1;
}

.institution-card:hover .institution-logo {
    transform: scale(1.05);
}

.institution-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.institution-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.institution-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.institution-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    background: rgba(63, 81, 181, 0.1);
    color: #3f51b5;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.institution-card:hover .feature-tag {
    background: rgba(63, 81, 181, 0.15);
    transform: translateY(-2px);
}

.institution-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 14px;
}

.stats-item i {
    color: #ffc107;
    font-size: 16px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .institutions-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .institution-logo {
        height: 160px;
    }
    
    .institution-name {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .institutions-list {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .institution-logo {
        height: 140px;
    }
    
    .institution-info {
        padding: 12px;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    .institution-card {
        background: #2a2a2a;
    }
    
    .institution-name {
        color: #fff;
    }
    
    .institution-type {
        color: #aaa;
    }
    
    .feature-tag {
        background: rgba(63, 81, 181, 0.2);
        color: #8ab4f8;
    }
    
    .institution-stats {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .stats-item {
        color: #aaa;
    }
}

/* 底部导航栏 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px var(--shadow-color);
    z-index: 1000;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-bar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    cursor: pointer;
    color: var(--text-color-secondary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-bar .tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-bar .tab:hover {
    color: var(--primary-color);
}

.tab-bar .tab:hover::before {
    width: 20px;
}

.tab-bar .tab.active {
    color: var(--primary-color);
}

.tab-bar .tab.active::before {
    width: 30px;
}

.tab-bar .iconfont {
    font-size: 20px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
}

.tab-bar .tab:hover .iconfont {
    transform: translateY(-2px);
}

.tab-bar .tab span {
    font-size: 11px;
    transition: all 0.3s ease;
}

/* 图片加载状态 */
.image-loading {
    filter: blur(2px);
    transition: filter 0.3s ease;
    animation: pulse 1.5s infinite;
}

.image-loaded {
    filter: blur(0);
    animation: none;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 加载动画 */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3f51b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading .loading-spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无结果状态 */
.no-results {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #666;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    margin: 8px 0;
}

.no-results .retry-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(63, 81, 181, 0.3);
}

.no-results .retry-btn:hover {
    background-color: #303f9f;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(63, 81, 181, 0.4);
}

.no-results .retry-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(63, 81, 181, 0.3);
}

/* 小屏幕适配 */
@media screen and (max-width: 390px) {
    .main-content {
        padding: 10px 12px;
    }
    
    .filter-bar {
        padding: 10px 12px;
    }
    
    .filter-item {
        min-width: 90px;
    }
    
    .filter-select {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .institutions-list.active {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .institution-name {
        font-size: 14px;
    }
    
    .institution-stats {
        gap: 4px;
    }
}

/* iPhone 15 适配 */
@media screen and (min-width: 390px) and (max-width: 390px) and (min-height: 844px) and (max-height: 844px) {
    .main-content {
        padding: 12px 15px;
        padding-bottom: 65px;
    }
    
    .institution-card {
        padding: 12px;
    }
    
    .category-tabs {
        margin-bottom: 12px;
    }
    
    .filter-bar {
        padding: 8px 12px;
        margin-bottom: 12px;
    }
}

/* 响应式调整 (可选，根据需要添加) */
@media screen and (max-width: 600px) {
    .institutions-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 稍小屏幕网格 */
    }

    .institutions-list.list-view .card-img {
        height: 80px;
        width: 80px;
    }
    
    .card-body h3 {
        font-size: 16px;
    }
    
    .card-body .location, .filter-item label, .filter-select, .sort-option {
        font-size: 13px;
    }
}

/* 适配不同屏幕的响应式样式 */
@media screen and (max-width: 450px) {
    .institutions-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 10px), 1fr));
    }
    
    .institution-logo {
        width: 50px;
        height: 50px;
    }
    
    .institution-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .institution-type {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .institutions-list.list-view .institution-stats {
        width: auto;
        gap: 10px;
    }
}

/* 页面背景图案 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(63, 81, 181, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 188, 212, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(255, 64, 129, 0.03) 0%, transparent 30%);
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* 卡片视觉增强 */
.institution-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.03) 30%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.03) 70%,
        transparent 100%
    );
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.institution-card:hover::before {
    opacity: 1;
    animation: cardShine 1.5s infinite;
}

@keyframes cardShine {
    0% {
        transform: translateX(-200%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* 装饰元素 */
.main-content::before {
    content: '';
    position: absolute;
    top: 70px;
    right: 5%;
    width: 150px;
    height: 150px;
    background: url('https://source.unsplash.com/random/150x150/?pattern,geometric') no-repeat center/cover;
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: 70px;
    left: 5%;
    width: 120px;
    height: 120px;
    background: url('https://source.unsplash.com/random/120x120/?abstract,shape') no-repeat center/cover;
    opacity: 0.05;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    pointer-events: none;
    z-index: -1;
}

/* 卡片图片效果增强 */
.institution-logo-container {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.institution-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.institution-card:hover .institution-logo {
    transform: scale(1.08);
}

.institution-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
    opacity: 0.9;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.institution-card:hover .institution-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 1;
}

.institution-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.institution-card:hover .institution-overlay {
    opacity: 0.8;
}

/* 图标装饰 */
.feature-tag i {
    margin-right: 4px;
    font-size: 10px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    body::before {
        background-image: 
            radial-gradient(circle at 10% 20%, rgba(63, 81, 181, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 90% 80%, rgba(0, 188, 212, 0.05) 0%, transparent 20%),
            radial-gradient(circle at 50% 50%, rgba(255, 64, 129, 0.05) 0%, transparent 30%);
        opacity: 0.2;
    }
    
    .institution-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }
}

/* 添加卡片底部装饰 */
.institution-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(to right, #3f51b5, #00bcd4);
    transition: width 0.3s ease;
}

.institution-card:hover::after {
    width: 100%;
}

/* 添加涟漪效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 暗黑模式调整 */
@media (prefers-color-scheme: dark) {
    .institution-logo-container {
        background-color: #2a2a2a;
    }
    
    .institution-logo.image-loading {
        background-color: #2a2a2a;
    }
    
    .institution-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    }
}

/* 图片加载效果 */
@keyframes pulse {
    0% {
        background-color: #f0f2f5;
    }
    50% {
        background-color: #e0e0e0;
    }
    100% {
        background-color: #f0f2f5;
    }
}

/* 暗模式下脉冲动画调整 */
@media (prefers-color-scheme: dark) {
    @keyframes pulse {
        0% {
            background-color: #2a2a2a;
        }
        50% {
            background-color: #333333;
        }
        100% {
            background-color: #2a2a2a;
        }
    }
}

/* 卡片淡入效果 */
.institution-card.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.institution-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 针对加载图片的样式优化 */
.image-loading {
    position: relative;
    overflow: hidden;
}

.image-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .image-loading::after {
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    }
} 